package hcn.protocol.brandnew.dengji.zhuyuanyuyue;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * Created by ChenJij on 2023/9/4.
 */
@XmlRootElement(name = "Data")
public class BedInformationResponse {
    private List<BedInfo> bedInfos;

    @XmlElementWrapper(name = "BedInfos")
    @XmlElement(name = "BedInfo")
    public List<BedInfo> getBedInfos() {
        return bedInfos;
    }

    public void setBedInfos(List<BedInfo> bedInfos) {
        this.bedInfos = bedInfos;
    }

    @XmlRootElement(name = "BedInfo")
    @Data
    public static class BedInfo {
        private String visitOrganization; //医院ID，医院系统身份标识
        private String visitOrganizationName;//医院名称
        private String deptId;//病区代码
        private String deptName;//病区名称
        private String bedNum;//总床数
        private String emptyBedNum;//空床床数

        @XmlElement(name = "VisitOrganization")
        public String getVisitOrganization() {
            return visitOrganization;
        }

        public void setVisitOrganization(String visitOrganization) {
            this.visitOrganization = visitOrganization;
        }

        @XmlElement(name = "VisitOrganizationName")
        public String getVisitOrganizationName() {
            return visitOrganizationName;
        }

        public void setVisitOrganizationName(String visitOrganizationName) {
            this.visitOrganizationName = visitOrganizationName;
        }

        @XmlElement(name = "DeptId")
        public String getDeptId() {
            return deptId;
        }

        public void setDeptId(String deptId) {
            this.deptId = deptId;
        }

        @XmlElement(name = "DeptName")
        public String getDeptName() {
            return deptName;
        }

        public void setDeptName(String deptName) {
            this.deptName = deptName;
        }

        @XmlElement(name = "BedNum")
        public String getBedNum() {
            return bedNum;
        }

        public void setBedNum(String bedNum) {
            this.bedNum = bedNum;
        }

        @XmlElement(name = "EmptyBedNum")
        public String getEmptyBedNum() {
            return emptyBedNum;
        }

        public void setEmptyBedNum(String emptyBedNum) {
            this.emptyBedNum = emptyBedNum;
        }
    }
}